﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Administrador.Master"
 CodeBehind="RegistrarMiembro.aspx.cs" Inherits="Interfaces.Miembro.RegistrarMiembro" %>
 <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
 <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
     <style type="text/css">
        
      
        .style2
        {
            width: 165px;
        }
        .style3
        {
            width: 184px;
        }
        
      
    .style4
    {
        width: 250px;
    }
        
      
         .style5
         {
             width: 121px;
         }
        
      
    </style>
    </asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel3" runat="server" GroupingText="Registrar Miembro" 
        style="text-align: left" Width="700px">

        <asp:UpdatePanel runat="server" id="UpdatePanel1" updatemode="Conditional">

    <Triggers>
       <asp:AsyncPostBackTrigger controlid="Button1" eventname="Click" />
    </Triggers>
    
    <ContentTemplate>

        <asp:Label ID="Label8" runat="server" Text="Campos obligatorios marcados con "></asp:Label>
        <asp:Label ID="Label9" runat="server" Text="(*)" ForeColor="Red"></asp:Label>

        <asp:Panel ID="Panel1" runat="server" GroupingText="Datos personales" 
        style="text-align: left">

            

        <table style="width: 100%;">
            <tr>
                <td class="style3">
                   Nombre
                </td>
                <td>
                    <asp:TextBox ID="TextNombre" runat="server" style="margin-left: 0px" 
                        Width="180px" Height="22px" MaxLength="25" 
                        ontextchanged="TextNombre_TextChanged" ForeColor="Black"></asp:TextBox>
    
                    <ajaxToolkit:FilteredTextBoxExtender ID="TextNombre_FilteredTextBoxExtender" 
                        runat="server" Enabled="True" FilterType="UppercaseLetters, LowercaseLetters" 
                        TargetControlID="TextNombre">
                    </ajaxToolkit:FilteredTextBoxExtender>
                    <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="*"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style3">
                       Apellido Paterno
                </td>
                <td>
                    <asp:TextBox ID="TextPaterno" runat="server" Width="180px" 
                        style="margin-left: 0px" MaxLength="25" 
                        ontextchanged="TextPaterno_TextChanged"></asp:TextBox><asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*"></asp:Label>
                    <ajaxToolkit:FilteredTextBoxExtender ID="TextPaterno_FilteredTextBoxExtender" 
                        runat="server" Enabled="True" FilterType="UppercaseLetters, LowercaseLetters" 
                        TargetControlID="TextPaterno">
                    </ajaxToolkit:FilteredTextBoxExtender>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    Apellido Materno
                </td>
                <td>
                    <asp:TextBox ID="TextMaterno" runat="server" Width="180px" MaxLength="25"></asp:TextBox>
                    <ajaxToolkit:FilteredTextBoxExtender ID="TextMaterno_FilteredTextBoxExtender" 
                        runat="server" Enabled="True" FilterType="UppercaseLetters, LowercaseLetters" 
                        TargetControlID="TextMaterno">
                    </ajaxToolkit:FilteredTextBoxExtender>
                </td>
                
            </tr>
            <tr>
                <td class="style3">
                    Numero de Carnet
                </td>
                <td>
                    <asp:TextBox ID="TextCarnet" runat="server" Width="180px" MaxLength="10" 
                        ontextchanged="TextCarnet_TextChanged"></asp:TextBox>
                    <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*"></asp:Label>
                    <ajaxToolkit:FilteredTextBoxExtender ID="TextCarnet_FilteredTextBoxExtender" 
                        runat="server" Enabled="True" FilterType="Numbers" 
                        TargetControlID="TextCarnet">
                    </ajaxToolkit:FilteredTextBoxExtender>
                    
                </td>
            </tr>
            <tr>
                <td class="style3">
                    Fecha de Nacimiento
                </td>
                <td>
                    <asp:TextBox ID="TextFechaNa" runat="server" Width="150px" Enabled="False"></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="TextFechaNa_CalendarExtender" runat="server" 
                        Enabled="True" PopupButtonID="Image2" TargetControlID="TextFechaNa">
                    </ajaxToolkit:CalendarExtender>
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/calendar.jpg" />
                </td>
            </tr>
            <tr>
                <td class="style3">
                    Correo
                </td>
                <td>
                    <asp:TextBox ID="TextCorreo" runat="server" Width="180px" 
                        AutoCompleteType="Email" MaxLength="30"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    Numero de telefono
                </td>
                <td>
                    <asp:TextBox ID="TextTelefono" runat="server" Width="150px" MaxLength="10"></asp:TextBox>
                    <ajaxToolkit:FilteredTextBoxExtender ID="TextTelefono_FilteredTextBoxExtender" 
                        runat="server" Enabled="True" FilterType="Numbers" 
                        TargetControlID="TextTelefono">
                    </ajaxToolkit:FilteredTextBoxExtender>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    Numero de Celular
                </td>
                <td>
                    <asp:TextBox ID="TextCelular" runat="server" Width="150px" MaxLength="10"></asp:TextBox>
                    <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" 
                        runat="server" Enabled="True" FilterType="Numbers" 
                        TargetControlID="TextTelefono">
                    </ajaxToolkit:FilteredTextBoxExtender>
                </td>
            </tr>
            <tr>
                <td>
                    
                    Cargo</td>
                <td>
                    <asp:DropDownList ID="DropDownCargo" runat="server">
                        <asp:ListItem>MiembroRegular</asp:ListItem>
                        <asp:ListItem>Tesorera</asp:ListItem>
                        <asp:ListItem>Presidenta</asp:ListItem>
                        <asp:ListItem>Secretaria</asp:ListItem>
                        <asp:ListItem>Directora</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="Button1" runat="server" CssClass="JCIstyle" Height="31px" 
                        onclick="Button1_Click" Text="Registrar" Width="96px" />
                    
                </td>
                <td>
                    <asp:Label ID="Label1" runat="server" BackColor="White" ForeColor="Red" 
                        Text="Label" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="Label10" runat="server" Text="Label" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="Label11" runat="server" Text="Label" Visible="False"></asp:Label>
                </td>
            </tr>
        </table>
    </asp:Panel>  
    
        
    <asp:Panel ID="Panel2" runat="server" GroupingText="Datos de usuario" 
        style="text-align: left" Visible="False">
        <table style="width: 100%;">
            <tr>
                <td class="style2">
                    Cargo
                </td>
                <td class="style4">
                    &nbsp;</td>
                
            </tr>
            <tr>
                <td class="style3">
                    Nombre de usuario
                </td>
                <td class="style4">
                    <asp:TextBox ID="TextNomUser" runat="server" Width="180px" MaxLength="25" 
                        ontextchanged="TextBox8_TextChanged" Height="22px" Enabled="False" 
                        AutoPostBack="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    Cantraseña
                </td>
                <td class="style4">
                    <asp:TextBox ID="TextContrasena" runat="server" Width="180px" MaxLength="40" 
                        ontextchanged="TextBox9_TextChanged" Height="22px" 
                        Enabled="False" AutoPostBack="True"></asp:TextBox>
                    <ajaxToolkit:PasswordStrength ID="TextContrasena_PasswordStrength" 
                        runat="server" CalculationWeightings="50;15;15;20" Enabled="True" 
                        PrefixText="Grado de dificultad:" TargetControlID="TextContrasena" 
                        TextStrengthDescriptions="Bajo;Medio;Alto">
                    </ajaxToolkit:PasswordStrength>
                    
                </td>
                <td class="style5">
                    &nbsp;&nbsp;
                    
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="Repetir Contraseña" Visible="False"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server" Height="22px" Width="180px" 
                        TextMode="Password" MaxLength="40" Visible="False"></asp:TextBox>
                    <ajaxToolkit:PasswordStrength ID="TextBox1_PasswordStrength" runat="server" 
                        CalculationWeightings="50;15;15;20" Enabled="True" 
                        PrefixText="Grado de dificultad" TargetControlID="TextBox1" 
                        TextStrengthDescriptions="Bajo;Medio;Alto">
                    </ajaxToolkit:PasswordStrength>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    
                    &nbsp;</td>
                <td>

                    &nbsp;</td>
            </tr>
        </table>
    </asp:Panel>
    </ContentTemplate>
    </asp:UpdatePanel>
    </asp:Panel>
    
</asp:Content>

